package com.zf.bm.common.core.sys.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.zf.bm.common.core.sys.entity.Menu;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

@Data
public class UserDTO implements Serializable {
    private Long id;
    @ExcelProperty(index = 0 ,value = "用户名")
    private String loginName;//用户登录名
    @ExcelProperty(index = 1 ,value = "邮箱")
    private String email;//邮件
    @ExcelProperty(index = 3 ,value = "用户状态")
    private String loginFlag;//是否启用
    @ExcelProperty(index = 6,value = "创建时间")
    private Date createDate;//创建时间
    @ExcelProperty(index = 4 ,value = "密码有效期")
    private Integer pwdPeriod;//密码有效期

    private List<Map> roles;//角色

    @ExcelProperty(index = 5,value ="角色")
    private String roleName;

    @ExcelProperty(index = 2 ,value = "手机")
    private String phone;//手机

    private String loginIp;//登录IP

    private Date loginDate;//登录时间

    private Integer modifyPwd;//控制用户登录后修改密码

    @ExcelProperty(index = 7 ,value = "用户描述")
    private String remarks;//手机
    private Integer status = 200;
    private Set<String> permissions;
    private List<Menu> menus;

    private String usbKey;

    /**
     * 是否跳转配置引导页面
     */
    private Boolean isGuide;
}
